import request from '@/utils/request'

// 查询校外实习基地情况列表
export function listBases(query) {
  return request({
    url: '/bases/bases/list',
    method: 'get',
    params: query
  })
}

// 查询校外实习基地情况详细
export function getBases(ibId) {
  return request({
    url: '/bases/bases/' + ibId,
    method: 'get'
  })
}

// 新增校外实习基地情况
export function addBases(data) {
  return request({
    url: '/bases/bases',
    method: 'post',
    data: data
  })
}

// 修改校外实习基地情况
export function updateBases(data) {
  return request({
    url: '/bases/bases',
    method: 'put',
    data: data
  })
}

// 删除校外实习基地情况
export function delBases(ibId) {
  return request({
    url: '/bases/bases/' + ibId,
    method: 'delete'
  })
}
